<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="jt.classic.system.context.ISystemContext"%>
<%@ page import="org.limp.mine.RandomUtil"%>
<%@ page import="org.limp.mine.StringTool"%>
<%
	//主键值
	String id = StringTool.checkString(request.getParameter("id"));
	
	if(id.equals("")){
		//新建内容,随机生成id,用于关联上传的图片
		String uniqueid = RandomUtil.getRandomString(20, false);
		ISystemContext.createSessionObject(request, "INFOUNIQUEID", uniqueid);
		out.println(uniqueid);
	}else{
		//编辑内容,当前内容主键ID
		ISystemContext.createSessionObject(request, "INFOID", id);
	}
%>